<template>
  <view :style="{height:wh+'px;background: white;'}">
    <web-view :src="url" v-if="token"/>
    <my-resources v-else></my-resources>
  </view>
</template>

<script>
  import timer from '@/mixins/token-timer.js'
  export default {
    mixins: [timer],
    data() {
      return {
        // 需要跳转的公众号文章链接
        url: '',
        wh:'',
        routename:"/pages/home/home"
      };
    },
    onLoad(options) {
      const sysinfo = uni.getSystemInfoSync()
      this.wh = sysinfo.windowHeight
      const src = JSON.parse(decodeURIComponent(options.src))
      this.url = src
    }
  }
</script>

<style lang="scss">

</style>
